var app = getApp();
Component({
  properties: {
        itemout: Object,
        params : Object,
    },

    data: {
        showstatus : false,
    },
    options : {
        addGlobalClass : true,
    },
    methods: {
        footNavigate(e){
            var url = e.currentTarget.dataset.url;
            wx.switchTab({
              url: url
            })
        },
        location : function( e ){
            app.com.location( e );
        },
        otherapp : function( e ){
            app.com.otherapp( e );
        },
        toweburl : function(e){
            app.com.toweburl( e,this );
        },
        navigateto : function( e ){
            var self = this;
            if( self.data.params.indexmes == 1 || !wx.requestSubscribeMessage){
                app.com.navigateto( e );
            }else{
                wx.requestSubscribeMessage({
                    tmplIds : self.data.params.submess,
                    complete : function(){
                        app.com.navigateto( e );
                    }
                })
            }
        },
        copy(e){
            wx.setClipboardData({
                data : e.currentTarget.dataset.copy
            })
        },
    }

})